Obtain the current thread's thread ID.
extern UInt32 UAMGetThreadID (void);
The UAMGetThreadID function return the thread ID of the current thread for subsequent use in calling UAMWakeup .